Registry Data

Product Feedback
Feedback

The InstallShield Registry explorer contains registry entries that are created on the target system when the component that the registry data belongs to is installed or advertised.

The InstallShield Registry explorer contains registry entries that are created on the target system when the feature that the registry data belongs to is installed or advertised. Before editing the target system's registry, select the feature that the registry keys belong to. The system's registry is modified only when the feature containing the registry data is installed.

Drag and Drop Registry Keys

The easiest way to add registry data to your setup is to drag keys from the Source view and drop them on a key in the Destination view. All registry entries and subkeys of this key are added to the selected feature's registry data. This method works only if the registry entries exist on your development system.

Create a Subkey

To add a registry key, right-click on a key in the explorer and select New Key. You can then rename the key. If you don't want to hard-code the name for this key you can use Windows Installer properties that are evaluated when the setup is installed. For example, if you would like your key to contain your company name as you entered it in the Publisher field of the Windows 2000 properties, you could enter [Manufacturer] for the name of your key. Any property defined in the Property Manager can be used in this way.

Edit Values

Click on any key to view its values. Right-click in the list to add a new string, binary, or DWORD value. Enter a new name right away, or right-click on the value name later to rename it.

Click in the value data column to modify the value. You must also select whether a DWORD value is decimal or hexadecimal.

Right-click on a value and select Delete to remove it from the key.

You can use any Windows Installer property as a regestry key's value by placing it in square brackets—[INSTALLDIR], for example. See Using Windows Installer Properties for more information.

Right-click on a key's value name to set a key path for this component.

Additional Features

Right-click on a registry hive and select Import REG File to import registry data. Right-click on Registry Data to import a registry file. The right-click menu also allows you to export a registry file or to find a registry key that you are including with your setup. InstallShield searches through the registry items of only the current component.

All entries under HKEY_USER_SELECTABLE are written under HKEY_CURRENT_USER in a per-user installation or under HKEY_LOCAL_MACHINE in a per-machine installation.